package com.trade.module.base.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Class Description: 角色实体类
 *
 * @Version v1.0 2017/4/21 20:24
 * @JDK version 1.8.0_51
 * @Author zfb
 */
@Entity
@Table(name = "base_role")
public class Role extends BaseEntity implements Serializable{

    private static final long serialVersionUID = -1075564973006631817L;

    /**
     * Field description：角色名称
     */
    @Column(
            name = "role_name",
            nullable = false,
            length = 20
    )
    private String roleName;

    /**
     * Field description：角色编码
     */
    @Column(
            name = "role_code",
            nullable = false,
            length = 32
    )
    private String roleCode;

    /**
     * Field description：角色状态
     */
    @Column(
            name = "role_flag",
            nullable = false,
            length = 2
    )
    private String roleFlag;

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleCode() {
        return roleCode;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }

    public String getRoleFlag() {
        return roleFlag;
    }

    public void setRoleFlag(String roleFlag) {
        this.roleFlag = roleFlag;
    }
}
